package com.example.bbs.dao;

import com.example.bbs.bean.NotePlus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface NotePlusMapper {

    List<NotePlus> byTypeTop(Integer typeid);

    List<NotePlus> byTypeAll(@Param("typeid") Integer typeid, @Param("start") Integer start, @Param("pagesize") Integer pageSize);

    NotePlus byIdWithBlob(Integer noteid);

    List<NotePlus> select(@Param("key") String key, @Param("start") Integer start, @Param("pagesize") Integer pageSize);

}